import instance from '../../utils/request.js'

// 学生信息查询   {usenrmae:xxx, userid:2}
export const studentQuery = (params) => {
  // const { username, userId, college, className, admissionYear, schoolYearSystem, pageSize, pageNum } = params
  return instance({
    url: `/api/teacher/query/student`,
    method: 'GET',
    params
  })
}

// 新闻轮播图
export const teacherCarousel = (params) => {
  const { limit=5 } = params
  return instance({
    url: '/api/teacher/home/latest-news',
    method: 'GET',
    params: { limit } 
  })
}
